﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> 
<%@ Assembly Name="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"%> 
<%@ Assembly Name="EAT.ExternalCollaboration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0d1f4e6fe605dcca" %>
<%@ Page Language="C#" Inherits="EAT.ExternalCollaboration.AddExternalUserPage" MasterPageFile="~/_layouts/application.master"%> 
<%@ Import Namespace = "EAT.ExternalCollaboration" %>
<%@ Import Namespace = "Microsoft.SharePoint" %>
<%@ Import Namespace = "System.DirectoryServices" %>
<%@ Import Namespace = "System.Net.Mail" %>
<%@ Import Namespace = "System" %>
<%@ Import Namespace = "System.Web" %>
<%@ Import Namespace = "System.Web.Security" %>
<%@ Import Namespace = "System.Security.Principal" %>
<%@ Import Namespace = "System.Runtime.InteropServices" %>
<%@ Register Tagprefix = "SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix = "wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx"%>
<%@ Register TagPrefix = "wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx"%>
<%@ Register TagPrefix = "wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx"%>
<%@ Register Tagprefix = "wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<asp:content ID="Content1" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
</asp:content>
<asp:Content ID="Content2" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:ExternalCollaboration,aeuPageTitle%>" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:content ID="Content3" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="<%$Resources:ExternalCollaboration,aeuPageTitle%>" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="<%$Resources:ExternalCollaboration,aeuPageDescription%>" EncodeMethod='HtmlEncode'/>
</asp:Content>


<asp:Content ID="Content5" runat="server"
             contentplaceholderid="PlaceHolderMain" >
<TABLE border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">

	<wssuc:InputFormSection Title="<%$Resources:ExternalCollaboration,aeuUsernameHeader%>"
		Description=""
		runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" 
			text="<%$Resources:ExternalCollaboration,aeuUsernameInstructions%>"
			EncodeMethod='HtmlEncode'/>
		
			<br>
			<br>
		</Template_Description>
		<Template_InputFormControls>
			<wssuc:InputFormControl LabelText="<%$Resources:ExternalCollaboration,aeuUsernameLabel%>" runat="server">
				<Template_Control>
					<asp:textbox AllowEmpty=false id="tbUsername" runat="server"/>
				    <asp:ImageButton  ImageUrl="../Images/checknames.gif" id="btnLookup" runat="server"
					   CausesValidation="false" OnClick="btnLookup_Click" ToolTip="<%$Resources:ExternalCollaboration,aeuUsernameTip%>"/>
					<br />
					<asp:label id="lblLookupResult" runat="server" Text="" Font-Bold="true"></asp:label>
					<asp:LinkButton id="lnkProvision" Text="<%$Resources:ExternalCollaboration,aeuAddUserLinkText%>" runat="server"
					   CausesValidation="false" Font-Bold="true" OnClick="lnkProvision_Click" Visible="false" />
                    <asp:label id="lblProvision" runat="server" Text="" Font-Bold="true"></asp:label>

				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
	
	<wssuc:InputFormSection
		Title="<%$Resources:ExternalCollaboration,aeuPermissionsHeader%>"
		Description="<%$Resources:ExternalCollaboration,aeuPermissionsInstructions%>"
		runat="server">
		<Template_InputFormControls>
			<wssuc:InputFormControl runat="server" LabelText="<%$Resources:ExternalCollaboration,aeuPermissionsLabel%>">
				<Template_Control>
					<table class="ms-authoringcontrols" border="0" cellpadding="0" cellspacing="0" width="100%">
						<wssawc:InputFormRadioButton runat="server"
						    AutoPostBack="true"
							Id="radAddToGroup"
							LabelText="<%$Resources:ExternalCollaboration,aeuAddToGroupButtonText%>"
							GroupName="AddToGroupOrRole"
							Checked="true"
							Enabled="false"
							OnCheckedChanged="radRoleGroup_OnClick"
							>
							<asp:DropDownList
								id="ddlGroups"
								runat="server"
								ToolTip="<%$Resources:wss,aclinv_DdlGroupToolTip%>"
								Enabled="false"
								/>
						</wssawc:InputFormRadioButton>
						<wssawc:InputFormRadioButton runat="server"
						    AutoPostBack="true"
							Id="radAddToRole"
							LabelText="<%$Resources:ExternalCollaboration,aeuExplicitPermissionsText%>"
							GroupName="AddToGroupOrRole"
		    				Enabled="false"
							OnCheckedChanged="radRoleGroup_OnClick"
							>
							<wssawc:InputFormCheckBoxList
										id="cblRoles"
										runat="server"
        								Enabled="false"
										class="ms-authoringcontrols"/>
						</wssawc:InputFormRadioButton>
					</table>
		<Template_InputFormControls>
			<wssuc:InputFormControl
			    runat="server">
				<Template_Control>
            		<asp:Button  id="btnAddAndEmail" runat="server" Text="<%$Resources:ExternalCollaboration,aeuGrantPermissionsButtonText%>" Width="150" 
					   CausesValidation="false" OnClick="btnGrantPermission_Click" Enabled="false"/>
			      	<asp:label id="lblPermission" runat="server" Text="" Font-Bold="true"></asp:label>
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>

				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
	</TABLE>    

</asp:Content>
